﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NHTrace
{
  public class ReceiverFactory
  {
    private Dictionary<string, string> _receiverParameters;

    public ReceiverFactory(Dictionary<string, string> receiverParameters)
    {
      _receiverParameters = receiverParameters;
    }

    public IReceiver GetReceiver(Logger logger, Type receiverType)
    {
      return Activator.CreateInstance(receiverType, logger, _receiverParameters) as IReceiver;
    }
  }
}
